package com.yc.exam.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 王妍
 * @since 2022-02-20
 */
@Getter
@Setter
@TableName("user")
@ApiModel(value = "User对象", description = "")
public class User implements Serializable {

  private static final long serialVersionUID = 1L;

  @ApiModelProperty("主键")
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;

  @ApiModelProperty("用户名")
  @TableField("username")
  private String username;

  @ApiModelProperty("密码")
  @TableField("password")
  private String password;

  @ApiModelProperty("创建时间")
  @TableField(value = "create_time", fill = FieldFill.INSERT)
  private Date createTime;

  @ApiModelProperty("更新时间")
  @TableField(fill = FieldFill.INSERT_UPDATE)
  private Date updateTime;

  @ApiModelProperty("昵称")
  @TableField("nickname")
  private String nickname;

  @ApiModelProperty("手机号码")
  @TableField("phone_number")
  private String phoneNumber;

  @ApiModelProperty("邮箱")
  @TableField("mail")
  private String mail;
}
